#include <stdio.h>
#include <windows.h>

int cal(int days);

int main()
{
    int days = 14;
    printf("There're %d peaches in total!\n", cal(days));
    system("pause");
}

int cal(int days)
{
    int i = 0;
    int peaches = 1;
    for (i = 0; i < days; i++)
    {
        peaches = (peaches + 1) * 2;
    }
    return peaches;
}